package com.hskn.hss.module.depart.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hskn.hss.module.tlemployee.entity.TlEmployee;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 组织报警表
 * </p>
 *
 * @author hskn
 * @since 2021-04-30
 */

public class SysDepartCharts implements Serializable {

    private String id;
    /**
     * 机构/部门名称
     */
    private String departName;
    /**
     * 机构类型
     */
    private String orgType;
    /**
     * 时间
     */
    private String createTime;
    /**
     * 合计报警次数
     */
    private Integer allAlarmCount;
    /**
     * 人员报警数
     */
    private Integer personAlarmCount;
    /**
     * 车辆报警数
     */
    private Integer carAlarmCount;
    /**
     * 设施报警数
     */
    private Integer sheshiAlarmCount;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }

    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    public Integer getAllAlarmCount() {
        return (personAlarmCount!=null?personAlarmCount:0)+(carAlarmCount!=null?carAlarmCount:0)+(sheshiAlarmCount!=null?sheshiAlarmCount:0);
    }

    public void setAllAlarmCount(Integer allAlarmCount) {
        this.allAlarmCount = allAlarmCount;
    }

    public Integer getPersonAlarmCount() {
        return personAlarmCount;
    }

    public void setPersonAlarmCount(Integer personAlarmCount) {
        this.personAlarmCount = personAlarmCount;
    }

    public Integer getCarAlarmCount() {
        return carAlarmCount;
    }

    public void setCarAlarmCount(Integer carAlarmCount) {
        this.carAlarmCount = carAlarmCount;
    }

    public Integer getSheshiAlarmCount() {
        return sheshiAlarmCount;
    }

    public void setSheshiAlarmCount(Integer sheshiAlarmCount) {
        this.sheshiAlarmCount = sheshiAlarmCount;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
